// 2013-7-29下午05:56:03  net.betou.trade.main.dao.NoticeDao.java

package net.betou.trade.main.dao;

import java.util.List;

import net.betou.common.hibernate3.Updater;
import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.Notice;

/**
 * 公告DAO 
 * @author 叶装装
 */
public interface NoticeDao{
	
	public Notice getLastNotice( );
	
	public Notice save( Notice bean );
	
	public Notice updateByUpdater( Updater< Notice > updater );
	
	public Notice deleteById( Integer id );
	
	public Notice findById( Integer id );
	
	public Notice findMyNotice( Integer id, Integer selfId );
	
	public Pagination getPage( Integer selfId, String searchProperty, String searchValue, String orderProperty, String orderDirection, String filterStatus, int pageNo, int pageSize );
	
	public Pagination getPageByCriteria( String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize, String sql );
	
	public Pagination getPage(   Integer groupId, List< Integer > idList,  int pageNo, int pageSize );
}
